-
-
Notifications
You must be signed in to change notification settings - Fork 124
Add Nutils participants for turek-hron-fsi3 #648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
1dfe1ab
to
5e39606
Compare
I ran both scripts through autopep8 -i but the style check is still failing. Please advise :) |
Thanks for the PR, @gertjanvanzwieten! |
5e39606
to
2f77bfb
Compare
For some reason actions fail to kick in but I think the scripts are compliant now, changes are generated with pre-commit run. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gertjanvanzwieten for this nice and clean contribution ❤️ and sorry for the very late reply.
Could you please tick the box in the PR to allow edits from maintainers?
The scripts are only tested in mutual coupling, so I don't know how they hold up with other participants
For how long did you run the simulation. Only the first few timesteps or till the end? If the latter, did you get identical results compared to the monolithic one?
I was able to start Nutils-Nutils and the first few time steps converged. Now I am running OpenFOAM-Nutils for longer to check physical results.
TODO (for us):
- add participants to README
cons['d'][r_where] = participant.read_data( | ||
r_name, 'Displacement', r_ids, timestep) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to confirm: You are using Newmark-beta for time integration. This means, you want to read at the end of the time step size, right? This is what is done right now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, everything is solved for the end of the time step. That's what I have come to really like about Newmark. Is it a poor fit for precice?
@dataclass | ||
class DummyParticipant: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you use this mock for testing? Is it still required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is not required anymore, apologies for the sloppiness (I thought I had removed it). I used it during development to validate the individual participants against the CFD and CSM tests of the original turek paper.
args['traction'] = participant.read_data( | ||
rw_name, 'Stress', rw_ids, timestep) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again reading at the end of the time step. Is this what you want here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my answer above.
@gertjanvanzwieten For the |
The nutils solver applies the same ramp, see Dynamic.ramp_up on line 103 and its application on line 274. Does the solver fail in the very first time step? Could you try setting Dynamic.gamma to 1.0 and Dynamic.beta to 0.5 to make the fluid solver fully implicit? |
This PR adds two Nutils participants for the turek-hron-fsi3 tutorial. The scripts are intentionally structured similar to our monolithic example so they can be compared side by side with https://examples.nutils.org/official-turek/.
Some notes:
I hope you will find this a useful addition, let me know if anything needs changing!